﻿using SharpSoft.Lexing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSoft.Documentation.Html.CSS
{
    /// <summary>
    /// Css块词法标识
    /// </summary>
    internal class CssBlockToken : IToken
    {

        public CssBlockToken(int pos,int length, BlockTokenType type,string content)
        {
            this._Position = pos;
            this._Length = length;
            this._Type = type;
            this._Content = content;
        }
        private string _Content;
        /// <summary>
        /// 标志内容
        /// </summary>
        public string Content
        {
            get { return _Content; }
            set { _Content = value; }
        }

        private BlockTokenType _Type;

        public BlockTokenType Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        private int _Position;

        public int Position
        {
            get { return _Position; }
            set { _Position = value; }
        }

        private int _Length;

        public int Length
        {
            get { return _Length; }
            set { _Length = value; }
        }
        
        
    }

    internal enum BlockTokenType
    {
        Selector,
        PropertyBlock
    }
}
